package com.miwzn.boot.modules.sys.service.impl;

import com.miwzn.base.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.miwzn.boot.modules.sys.mapper.SysRoleMapper;
import com.miwzn.boot.modules.sys.entity.po.SysRole;
import com.miwzn.boot.modules.sys.service.SysRoleService;
import com.miwzn.boot.modules.sys.entity.qm.SysRoleQuery;
import com.miwzn.boot.modules.sys.entity.dto.SysRoleDto;

import java.util.List;

/**
 * @Author: wzn
 * @Date: 2018-12-27 15:17:28
 * @Description: www.miwzn.com service  实现
 */
@Service
public class SysRoleServiceImpl extends AbstractService<SysRole, SysRoleDto, SysRoleQuery> implements SysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> selectRolesByUserId(String userId) {
        return sysRoleMapper.selectRolesByUserId(userId);
    }
}
